import VueRouter from 'vue-router'

// 导入tabbar的路由组件
import home from './components/TabbarRouter/home.vue'
import member from './components/TabbarRouter/member.vue'
import cart from './components/TabbarRouter/cart.vue'
import search from './components/TabbarRouter/search.vue'


// 创建路由
var router=new VueRouter({
  // 路由规则
  routes:[{path:'/',redirect:'/home'},
  {path:'/home',component:home},
  {path:'/member',component:member},
  {path:'/cart',component:cart},
  {path:'/search',component:search},
  ],
 linkActiveClass:'mui-active'//设置为mui组件的高亮显示
})

export default router